﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDf_Seclass_ProjBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDf_Seclass_Proj;

        void Remove(IDf_Seclass_Proj entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDf_Seclass_Proj;

        /// <summary>
        /// 根据条件获取长度：资金受限条件养护方案表
        /// </summary>
        /// <param name="anni_name">资金模型名称</param>
        /// <param name="analy_year">分析年度</param>
        /// <param name="rd_class">技术等级</param>
        /// <param name="segid_main">养护类型</param>
        /// <returns></returns>
        double GetRoadLenght(string anni_name, string analy_year, int rd_class, int segid_main);

        /// <summary>
        /// 根据条件获取路段养护费用：资金受限条件养护方案表
        /// </summary>
        /// <param name="anni_name">资金模型名称</param>
        /// <param name="analy_year">分析年度</param>
        /// <param name="rd_class">技术等级</param>
        /// <param name="segid_main">养护类型</param>
        /// <returns></returns>
        double GetSegid_MainCOST(string anni_name, string analy_year, int rd_class, int segid_main);

        /// <summary>
        /// 获取该资金模型下的所有技术等级：资金受限条件养护方案表
        /// </summary>
        /// <param name="anni_name">资金模型名称</param>
        /// <returns></returns>
        List<int> GetRD_ClassList(string anni_name);
    }
}
